package com.ruoyi.web.wrapper;

import cn.hutool.core.util.ObjectUtil;
import com.ruoyi.common.wrapper.BaseControllerWrapper;

import java.util.List;
import java.util.Map;

public class MemberAuthInfoWrapper extends BaseControllerWrapper {

    public MemberAuthInfoWrapper(Map<String, Object> single) {
        super(single);
    }

    public MemberAuthInfoWrapper(List<Map<String, Object>> multi) {
        super(multi);
    }

    @Override
    public void wrapTheMap(Map<String, Object> map) {

        try {

            Long uid = (Long) map.get("uid");
            if (ObjectUtil.isNotEmpty(uid)){
                map.put("uid", uid+"");
            }

        }catch (Exception ex){
            ex.printStackTrace();
        }
    }
}
